<!DOCTYPE html>
<html>
<head>
<title>{$site_name}</title>
<meta name="keywords" content="{$site_seo_keywords}" />
<meta name="description" content="{$site_seo_description}">

<tc_include file="Public:head" />
</head>

<body class="body-white" id="top">
	<tc_include file="Public:nav" />

		<div class="container tc-main">
                <div class="row">
                    <div class="span3">
	                    <tc_include file="Public:usernav"/>
                    </div>
                    <div class="span9">
                           <div class="tabs">
                               <ul class="nav nav-tabs">
                                   <li <if condition='$status eq 0'> class="active"</if> ><a href='{:U("user/task/$func")}' ><i class="fa fa-comments-o"></i>任务列表管理</a></li>
	                            	<li <if condition='$status eq 1'> class="active"</if> ><a href='{:U("user/task/$func",array("status"=>1))}' >运行中任务 </a>   </li> 
                               		<li  <if condition='$status eq 2'> class="active"</if> ><a href='{:U("user/task/$func",array("status"=>2))}' >已关闭任务 </a>   </li>
                               </ul>
                               <div class="tab-content">
                                   <div class="tab-pane active" id="one">
                                   		
                                   		<table class="table table-bordered table-striped table-hover">
									    <thead>
									      <tr>
									       	 <th>#</th>
									        <if condition="$taskType eq 1">
									        <th>公众号名称</th>
									        <else />
									        <th>文章标题</th>
									        <th width="180">文章网址</th>	
									        </if>
									        <th >任务奖励</th>
									        <th >任务积分</th>
									        <th >任务执行总次数</th>
									        <th>任务已执行次数</th>	
									        <th>任务状态</th>
									      	<th>管理</th>
									      </tr>
									    </thead>
									    <tbody>
									  <volist name="content" id="vo">
									  <tr>
									  	<td>{$vo.tid}</td>
									  	  <if condition="$taskType eq 1">
									        <td>{$vo.pwc_name}</td>
									        <else />
									        <td>{$vo.title}</td>
									       	<td>{$vo.tasktitle}</td>
									        </if>
									  	
									    
									    <td>{$vo.reward}</td>
									    <td>{$vo.integration}</td>
									    <td>
									    <if condition="$vo['taslnum'] eq 0">
									    	不限制
									    <else /> 
									    {$vo.tasknum}
									    </if>
									    </td>
									    <td>{$vo.num}</td> 
									    <td>
									    	<if condition="$vo['taskstatus'] eq 1">
									    	运行
									    	<else />
									    	停止
									    	</if>
									    </td>
									    <td> 
									    		任务记录 

									    	<a class="J_ajax_refresh" href="{:U('user/task/changeTask',array('tid'=>$vo['tid'],'taskType'=>$vo['taskType']))}">
									    		<if condition="$vo['taskstatus'] eq 1">
										    	停止
										    	<else />
										    	运行
										    	</if>
									    		
									    	</a>
							
									    	<a href="{:U('user/task/delMang',array('tid'=>$vo['tid']))}" class="J_ajax_del" data-msg="确定删除吗？" >删除</a>
									    	
									    </td> 
									  </tr>
									  </volist>   
									    </tbody>
									  </table>
                                   		
                                   	
                                   
                                   
                                   		
                                   </div>
                                   
                                   <div class="pager">{$pager}</div>
                               </div>							
                           </div>
                    </div>
                </div>

		<tc_include file="Public:footer" />

	</div>
	<!-- /container -->

	<tc_include file="Public:scripts" />
</body>
</html>